package com.yyaccp.hncc.oss.aliyun;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;

/**
 * Created by 天天向上 （john.yi@qq.com） on 2020/8/18.
 */
public interface OssService {

    Map<String, Object> upload(String originalFilename, InputStream in);
    Map<String, Object> download(String key, OutputStream outputStream);

    Map<String, String> policy();
    Map<String, String> callback(HttpServletRequest request);
}
